$(function(){
    	$("input[name='s']").keyup(function(){
   	  var id=$(this).val();
   	   var method="add";
   	$.ajax({
   		url:path+'/productServlet',
   		type:'post',
   		data:{
   			method:method,
   			id:id
   		},
   		dataType:"json",
   		success:function(data){
   		
   			var production_num=data.production_num;
   			var production_name=data.production_name;
   			var production_cost=data.production_sum_after;
   			var production_type=data.production_type;
   			
   			$("input[name='production_num']").val(production_num);
   			$("input[name='production_name']").val(production_name);
   			$("input[name='production_cost']").val(production_cost);
   			$("input[name='production_type']").val(production_type);
   		}
   		
   		
   		
   	})
   	
   	
   	
   	
   	
   
		
		
	
	})

})